package homework;

public class PointTest {
    public static void main(String[] args) {
        Point p = new Point();
        int x = 0; int y = 0; int z = 0;
        p.setX(x);p.setY(y);p.setZ(z);

        for (int i = 0; i < 10; i++) {
            System.out.println("第"+(i+1)+"层");
            for (int j = 0; j < 10; j++) {
                for (int k = 0; k < 10; k++) {
                    p.setX(k);p.setY(j);p.setZ(i);
                    if ( p.getX()* p.getX() + p.getY()*p.getY()+p.getZ()*p.getZ() == 81 ){
                        System.out.print("* ");
                    }else{
                        System.out.print("- ");
                    }
                }
                System.out.println();
            }

        }
    }
}
